<template>
  <div class="block">
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :page-sizes="[10, 20, 30, 40, 50]"
      :page-size="100"
      layout="total, prev, pager, next, sizes, jumper"
      :total="100"
      prev-text="上一页"
      next-text="下一页"
    >
    </el-pagination>
    <el-button>确定</el-button>
  </div>
</template>

<script>
export default {
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
  data() {
    return {
      currentPage1: 5,
      currentPage2: 5,
      currentPage3: 5,
      currentPage4: 1,
    };
  },
};
</script>

<style lang="scss" scoped>
  @import "./scss/index.scss";
</style>